for i in range(2,100):
    j = 2
    while True:
        if i % j != 0:
            j += 1
        else:
            break
        if j == i:
            print(i)
            break